using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace CodePlex.SpaceBlock.UI.Controls.Explore
{
    public class ExploreView : BaseView<ExploreControl>
    {
        public ExploreView() : base("Explore", UIConstants.ImageHints.FolderOpen, Keys.Control | Keys.E, Properties.Messages.Views_Explore_Tooltip) { }

        protected override void InitializeControl(ExploreControl control)
        {
            AuthUtils.FileSystemManagerChanged += delegate
          {
              control.InDisplay(delegate
              {
                  if (AuthUtils.FileSystemManager.IsValid)
                  {
                    
                      control.Initialize(AuthUtils.FileSystemManager);
                  }
              });
          };


            control.Initialize(AuthUtils.FileSystemManager);
        }
    }
}
